package com.zhentao.controller;

import com.zhentao.common.dtos.ResponseResult;
import com.zhentao.service.AnnouncementsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api("/zpi/wx/announcements")
@RestController
@RequestMapping("/zpi/wx/announcements")
public class AnnouncementsController {
    @Autowired
    private AnnouncementsService announcementsService;

    /**
     * 公告列表
     * @return
     */
    @ApiOperation(value = "公告列表", notes = "公告列表", httpMethod = "GET")
    @GetMapping("/index/home/list")
    public ResponseResult indexHomeList() {
        return announcementsService.indexHomeList();
    }
}
